package org.ee.core.exception;

/**
 *
 * @Author zlj
 * @Date 2025/11/9 00:09
 */

import io.netty.channel.*;

/**
 * 通用异常处理
 */
public class ExceptionHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
        System.err.println("异常: " + cause.getMessage());
        ctx.close();
    }
}
